import requests

# user-agent池随机调用防止反爬

header = {
    'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Mobile Safari/537.36 Edg/136.0.0.0'
}
for i in range(49,50):
    # res = requests.get(f"http://img.daimg.com/uploads/allimg/250504/3-2505042245{i}.jpg",headers=header)
    res = requests.get("https://s1.aigei.com/src/img/jpg/95/95c0666708e441cb819dcfab76f30bf7.jpg?imageMogr2/auto-orient/thumbnail/!282x155r/gravity/Center/crop/282x155/quality/85/%7CimageView2/2/w/282&e=2051020800&token=P7S2Xpzfz11vAkASLTkfHN7Fw-oOZBecqeJaxypL:qnlEqgolu_Xd-9sooMLBLirMH38=",headers=header)
    print(res.status_code)
    print(res.content)
    with open(f'photo_30{i}.jpg','wb') as f:
        f.write(res.content)










